
# WeekColList=("I","D","E","F","G","H") #星期列
# WeekColName=("星期天","星期一","星期二","星期三","星期四","星期五")#星期列对应名
WeekColList={
    
    "星期一":("D",1),
    "星期二":("E",2),
    "星期三":("F",3),
    "星期四":("G",4),
    "星期五":("H",5),
    "星期天":("I",0),
}
classTimeLableCol=1
ClassRow=[8,11,14,16,19,22,24,27,29,33,35,37] #课时行
halfClass=[] # 单双周课时（前一行）

namePrefix="(" #姓名前缀
nameSuffix=")" #姓名后缀

totalClassTime=58 #每班总课时
grade={
    "七年级":["109班","111班","112班","110班","113班","114班","115班","116班"],
    "八年级":["101班","102班","103班","104班","105班","106班","107班","108班"],
    "九年级":["95班","96班","97班","98班","99班","100班","启航班"],
    # "九年级":["88班","90班","91班","92班","93班","94班","凌云班","继光班"],
}
AdditionalClass=['103班'] #7、8年级参与补课的班级

FragmentedInputList=[   #零散录入列表 (星期，行号，课时节数，需录入班级)
    # ({"星期天":("I",0),},32,9,grade["七年级"]+grade["八年级"]+grade["九年级"]),
    ({"星期天":("I",0),},31,8,grade["七年级"]+grade["八年级"]+grade["九年级"]),
]

FragmentedDeleteList=[ #零散清除列表 （班级，星期，课时节数）
    (grade["七年级"],1,7),
    (grade["八年级"],2,7),
    (grade["九年级"],3,7),
]

AtMostClass=[
    {   #每天最多课时
    "class":grade["七年级"],#班级
    "course":[("生物",1),("地理",1),("道法",1),("历史",1),("体育",1)] #（科目，最多节数）
    }
    ,{  
    "class":grade["八年级"],#班级
    "course":[("生物",1),("地理",1),("道法",1),("历史",1),("体育",1),("物理",2)] #（科目，最多节数）
    }
    ,{  
    "class":grade["九年级"],#班级
    "course":[("道法",1),("历史",1),("体育",1),("物理",2),("化学",2)] #（科目，最多节数）
    }
]

MorningSession=[0,1,2,3] #上午课时
AfternoonSession=[4,5,6] #下午课时
EveningSession=[7,8,9,10,11] #晚上课时

classname="I3" #班级名单元格



def getColIndex(lable):
    _n="ABCDEFGHIJKLNMOPQRSTUVWXYZ"
    return _n.index(lable)


if __name__ == "__main__":
    for i in WeekColList:
        print(i)
        print(WeekColList[i][0])
        print(WeekColList[i][1])
    print(len(grade))
    g=grade["七年级"]+grade["八年级"]
    print(grade["七年级"]+grade["八年级"]+grade["九年级"])
    print(grade["九年级"]+AdditionalClass)
    for i in AdditionalClass:
        g.remove(i)
    print(g)